const str = $context.textItems[0]
const chineseNumber = str.match(/([\u4e00-\u9fa5])\d{1,}\.?\d?(?=\s)/g)
const filterChinese = chineseNumber.map(v => parseFloat(v.replace(/[\u4e00-\u9fa5]/, '')))
const sum = filterChinese.reduce((prev, curr) => prev + curr, 0)

$ui.alert({
  title: "账单结果：",
  message: sum + "元",
})
